from locust import HttpUser, task


class PerformanceUser(HttpUser):
    host = 'http://192.168.2.168:9000'

    @task(weight = 1)
    def userLogin(self):
        self.client.request(method = 'POST', url = '/user/login', params = None, json = None, headers = None)

    @task(weight = 1)
    def userInfo(self):
        self.client.request(method = 'POST', url = '/user/info', params = None, json = None, headers = None)

    @task(weight = 1)
    def userLogout(self):
        self.client.request(method = 'POST', url = '/user/logout', params = None, json = None, headers = None)
